package com.explorx.sns.puma.im.core.chat.message;

import com.alibaba.fastjson2.JSON;
import lombok.Data;

import java.io.Serializable;

@Data
public class ImMessage implements Serializable {

    private int messageType;

    private MessageBase messageContent;

    public String toJson(){
        return JSON.toJSONString(messageContent);
    }
}
